{if count($doors) gt 0}
<table>
	{foreach from=$doors item=d} 
	<tr>
		<td>
			<form action="/" method="POST">
				<input type="hidden" name="m" value="move" />
				<input type="hidden" name="d" value="door" />
				<input type="hidden" name="i" value="{$d.id}" />
				<input class="door" type="submit" value="{$d.title}" />
			</form>
		</td>
	</tr>
	{/foreach}
</table>
{/if}
